/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 优麦菜
 */

// 登录
export const getLogin = "http://aaa.yyoumaicai.com/index.php?g=Wap&m=Login&a=dologin"
// 获取cookie
export const getCookie = "http://aaa.yyoumaicai.com/index.php?g=wap&m=index&a=index" 
// 
export const getqueueacceptresult = "http://aaa.yyoumaicai.com/index.php?g=wap&m=index&a=getqueueacceptresult" 
// 获取任务
export const getTaskList = "http://aaa.yyoumaicai.com/index.php?g=wap&m=index&a=getqueueandproduntnum"
// 接单
export const getAcceptManage = "http://aaa.yyoumaicai.com/index.php?g=Wap&m=AcceptManage&a=taking_task"

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: param.headers,
        dataType: param.dataType ? param.dataType : 'json',
        returnAll: false,
        data: {
            values: param.data
        }
    }, fun)
}